<?php

include mymps_tpl('inc_head');
echo '<div id="';
echo MPS_SOFTNAME;
echo '">' . "\r\n" . '<table border="0" cellspacing="0" cellpadding="0" class="vbm">' . "\r\n" . '  <tr class="firstr">' . "\r\n" . '  ' . "\t" . '<td colspan="2">技巧提示</td>' . "\r\n" . '  </tr>' . "\r\n" . '  <tr bgcolor="#ffffff">' . "\r\n" . '    <td id="menu_tip">' . "\r\n" . '  <li>如果你的服务器支持mail函数（具体信息请咨询你的空间提供商），我们建议你使用系统的mail函数</li>' . "\r\n" . '  <li>当您的服务器不支持mail函数的时候，您也可以选择SMTP作为邮件服务器。</li>' . "\r\n" . '    </td>' . "\r\n" . '  </tr>' . "\r\n" . '</table>' . "\r\n" . '</div>' . "\r\n" . '<form method="post" action="mail.php?part=';
echo $part;
echo '">' . "\r\n" . '<div id="';
echo MPS_SOFTNAME;
echo '">' . "\r\n" . '<table border="0" cellspacing="0" cellpadding="0" class="vbm">' . "\r\n" . '<tr class="firstr"><td colspan="2">配置邮件服务器设置</td></tr>' . "\r\n" . '<tr bgcolor="#ffffff">' . "\r\n" . '<td width="25%">' . "\r\n" . '邮件服务:  &nbsp;&nbsp;' . "\r\n" . '</td>' . "\r\n" . '<td>' . "\r\n" . '<label for="mail"><input name="mail_service" type="radio" class="radio" id="mail" value="mail" onclick=\'document.getElementById("smtp_div").style.display = "none";document.getElementById("mail_div").style.display = "";\' ';

if ($mail_config[mail_service] != 'smtp') {
	echo 'checked="checked"';
}

echo '>采用服务器内置的mail服务</label> ' . "\r\n" . '<label for="smtp"><input class="radio" name="mail_service" type="radio" id="smtp" value="smtp" onclick=\'document.getElementById("smtp_div").style.display = "";document.getElementById("mail_div").style.display = "none";\' ';

if ($mail_config[mail_service] == 'smtp') {
	echo 'checked="checked"';
}

echo '>采用其他的SMTP服务</label>' . "\r\n" . '<label for="no"><input class="radio" name="mail_service" type="radio" id="no" value="no" onclick=\'document.getElementById("smtp_div").style.display = "none";document.getElementById("mail_div").style.display = "none";\' ';

if ($mail_config[mail_service] == 'no') {
	echo 'checked="checked"';
}

echo '>不采用邮件服务</label>' . "\r\n" . '</td>' . "\r\n" . '</tr>' . "\r\n" . '<tbody id="smtp_div" ';

if ($mail_config[mail_service] != 'smtp') {
	echo ' style="display:none"';
}

echo '>' . "\r\n" . '<!--<tr bgcolor="#ffffff">' . "\r\n" . '<td>' . "\r\n" . '邮件服务器是否要求SSL加密链接' . "\r\n" . '</td>' . "\r\n" . '<td>' . "\r\n" . '<label for="0"><input type="radio" name="ssl" value="0" id="0" class="radio" checked="checked">否</label>' . "\r\n" . '<label for="1"><input type="radio" class="radio" name="ssl" value="1" id="1" onclick="return confirm(\'此功能要求您的php必须支持OpenSSL模块, 如果您要使用此功能，请联系您的空间商确认支持此模块\');">是</label>' . "\r\n" . '</td>' . "\r\n" . '</tr>-->' . "\r\n" . '<tr bgcolor="#ffffff">' . "\r\n" . '<td>' . "\r\n" . '参数一' . "\r\n" . '</td>' . "\r\n" . '<td>' . "\r\n" . '<input class="text" type="text" name="smtp_server" value="';
echo $mail_config[smtp_server];
echo '"></td>' . "\r\n" . '</tr>' . "\r\n" . '<tr bgcolor="#ffffff">' . "\r\n" . '<td>' . "\r\n" . '参数二' . "\r\n" . '</td>' . "\r\n" . '<td><input class="text" type="text" name="smtp_serverport" value="';
echo $mail_config[smtp_serverport];
echo '"></td>' . "\r\n" . '</tr>' . "\r\n" . '<tr bgcolor="#ffffff">' . "\r\n" . '<td>' . "\r\n" . '参数三' . "\r\n" . '</td>' . "\r\n" . '<td><input class="text" type="text" name="smtp_mail" value="';
echo $mail_config[smtp_mail];
echo '"></td>' . "\r\n" . '</tr>' . "\r\n" . '<tr bgcolor="#ffffff">' . "\r\n" . '<td>' . "\r\n" . '参数四' . "\r\n" . '</td>' . "\r\n" . '<td><input class="text" type="text" name="mail_user" value="';
echo $mail_config[mail_user];
echo '"></td>' . "\r\n" . '</tr>' . "\r\n" . '<tr bgcolor="#ffffff">' . "\r\n" . '<td>' . "\r\n" . '参数五' . "\r\n" . '</td>' . "\r\n" . '<td><input class="text" type="password" name="mail_pass" value="';
echo $mail_config[mail_pass];
echo '"></td>' . "\r\n" . '</tr>' . "\r\n" . '</tbody>' . "\r\n" . '</table>' . "\r\n" . '</div>' . "\r\n" . '<center><input type="submit" value="提 交" class="mymps large" name="mail_submit"/>  </center>' . "\r\n" . '</form>' . "\r\n" . '<div class="clear" style="height:10px;"></div>' . "\r\n" . '<form method="post" action="mail.php?part=';
echo $part;
echo '">' . "\r\n" . '<div id="';
echo MPS_SOFTNAME;
echo '">' . "\r\n" . '<table border="0" cellspacing="0" cellpadding="0" class="vbm">' . "\r\n" . '<tr class="firstr"><td colspan="2">测试邮件发送</td></tr>' . "\r\n" . '<tr bgcolor="#ffffff">' . "\r\n" . '<td width="25%">' . "\r\n" . '对方邮件地址' . "\r\n" . '</td>' . "\r\n" . '<td><input class="text" type="text" name="test_mail" value=""></td>' . "\r\n" . '</tr>' . "\r\n" . '</table>' . "\r\n" . '</div>' . "\r\n" . '<center><input type="submit" value="提 交" class="mymps large" name="mail_submit"/>  </center>' . "\r\n" . '</form>' . "\r\n";
mymps_admin_tpl_global_foot();

?>
